package 类与对象.枚举;

import 类与对象.多态.多态数组.Person;

public class Enumeration {
    public static void main(String[] args) {
        System.out.println(Season.AUTUMN);
        System.out.println(Season.SPRING);
    }
}

class Season1{
    private String name;
    private String desc;

    public static final Season1 SPRING = new Season1("春天","生机勃勃");
    public static final Season1 WINTER = new Season1("冬天","寒风刺骨");
    public static final Season1 AUTUMN = new Season1("秋天","秋高气爽");
    public static final Season1 SUMMER = new Season1("春天","夏日炎炎");

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "Season{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

    private Season1(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }
}
